package ooday03.ZooPro;

public class Dog extends Animal implements Swim{
    public Dog(String name, String color, int age){
        super(name, color,age);
    }
    public void eat(){
        System.out.println(color+"颜色的"+age+"岁的小狗"+name+"在吃骨头");
    }
    void lookHouse(){
        System.out.println(color+"颜色的"+age+"岁的小狗"+name+"会看家");
    }

    @Override
    public void swim() {
        System.out.println(color+"颜色的"+age+"岁的狗狗"+name+"在游泳...");
    }
}
